/**
 * 关于调度接口
 */
import request from '@/utils/request'

const api_name = '/monitor/trigger'
export default {
  //查询所有触发记录
  getAllTrigger(page,limit) {
    return request({
      url: `${api_name}/getTriggerLogVO/${page}/${limit}`,
      method: 'get'
    })
  },
  //根据触发id查询执行结果
  getRuleInfoCompute(triggerId) {
    return request({
      url: `${api_name}/getRuleInfoComputeVO/${triggerId}`,
      method: 'get'
    })
  },
  //触发一个规则集合的执行
  triggerExecute(who,collectionId) {
    return request({
      url: `${api_name}/triggerExecute/${who}/${collectionId}`,
      method: 'get'
    })
  }
}
